import java.util.ArrayList;

public class Class {

    ArrayList<Student> s = new ArrayList<>();

    public Class() {
        s.add(new Student("zhangsan", "nan", 43));
        s.add(new Student("lisi", "nan", 45));
        s.add(new Student("wangwu", "nan", 77));
        s.add(new Student("cuihua", "nv", 59));
    }


    public void operator() {
        Operator o = new OperatorDemo2();
        o.printmassage(s);
        o.printscore(s);



    }
}
